/////////////////////////
// 	CDDString.h	:	v0010
//	Written by 	:	Li	Haijun
//	Compiler	:	Microsoft Visual C++ 4.0
//	v0010		:	Aug.21.1996
/////////////////////////
// to show a sting
/////////////////////////////////////////////////////////////////////////////
// CDDString class

#ifndef __DDTEXT_H__
#define __DDTEXT_H__

#include	"stdafx.h"


////////////////////////////////////////////////////////////////////
// to declear a class to show a string at the special place and color

class	CDDString
{
	//	data member of this class
public :
	BOOL		m_bIsUse ;			// to flag whether this instance is in used
	BOOL		m_bName ;			// TRUE -> this text instance store a players name 
									//	#define	MAX_NAME_LETTER			9

private :
	int			m_dwX, m_dwY ;		// the position of this text instance on the surface
	COLORREF	m_TextColor ;		// the color of this text instance
	char		m_cString[ NETWORK_MAX_MESSAGE_LETTER+1+2+MAX_NAME_LETTER ] ;			// the string of this text to show

public :
	CDDString() ;
	~CDDString() ;

	void	SetPos( int x, int y ) ;
	int		GetPosX( void ) ;
	int		GetPosY( void ) ;

	void	SetColor( COLORREF color ) ;
	COLORREF GetColor( void ) ;

	void	SetString( LPCSTR string ) ;
	BOOL	GetString( LPSTR  string ) ;

	void	ToEmpty( void ) ;

	void	Blit( void ) ;

};

///////////////////////////////////////////////////////////////
// to declear some function to operate the array of this class
void	FACE_DeleteAllText() ;

#endif		//	__DDTEXT_H__
